package com.jumi.microservice.dto.request.api;

import com.jm.member.common.api.volidator.WrapperAnnon;
import com.jumi.microservice.enums.JoinType;
import com.jumi.microservice.enums.Level;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

@ApiModel("我的团队查询模型")
public class MyTeamQueryRequest {

    @ApiParam("手机号")
    private String mobile;

    @ApiParam("查询等级条件;用户级别：1.团购用户 2团长 3优秀团长 4金牌推广商")
    @WrapperAnnon(queryType = "in",queryColumn = "level",flag = false)
    private Integer[] levels;

    @ApiParam("开始时间:2018-05-11")
    @WrapperAnnon(queryType = "ge",queryColumn = "join_time")
    private String beginTime;

    @ApiParam("结束时间:2018-05-12")
    @WrapperAnnon(queryType = "lt",queryColumn = "join_time")
    private String endTime;

    @ApiParam("查询日期类型;-1=所有,0=今日,1=昨日,7=7天,30=30天")
    @WrapperAnnon(queryType = "",queryColumn = "",flag = false)
    @NotNull(message = "查询的明细类型不能为空!")
    private Integer sign;



    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer[] getLevels() {
        return levels;
    }

    public void setLevels(Integer[] levels) {
        this.levels = levels;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getSign() {
        return sign;
    }

    public void setSign(Integer sign) {
        this.sign = sign;
    }
}
